<template>
	<view class="registrant-container">
		<view class="info-box">
			<view class="title">登记人信息</view>
			<view>
				<view class="d-flex item-box justify-content-between align-items-center">
					<view>真实姓名</view>
					<view>张三</view>
				</view>
				<view class="d-flex item-box justify-content-between align-items-center">
					<view>曾用名</view>
					<view>张三</view>
				</view>
				<view class="d-flex item-box justify-content-between align-items-center">
					<view>身份证号</view>
					<view>430381201112345678</view>
				</view>
				<view class="d-flex item-box justify-content-between align-items-center">
					<view>护照号</view>
					<view>无</view>
				</view>
				<view class="d-flex item-box justify-content-between align-items-center">
					<view>性别</view>
					<view>男</view>
				</view>
				<view class="d-flex item-box justify-content-between align-items-center">
					<view>国籍</view>
					<view>中国</view>
				</view>
				<view class="d-flex item-box justify-content-between align-items-center">
					<view>住址</view>
					<view>河南省郑州市商都世茂中心</view>
				</view>
			</view>
			<view class="text">身份证：</view>
			<view class="id-card d-flex justify-content-between">
				<image src="../../static/images/index/banner1.png" mode=""></image>
				<image src="../../static/images/index/banner1.png" mode=""></image>
			</view>
		</view>
		<view class="relation-box">
			<view class="d-flex item-box justify-content-between">
				<view class="text">联系电话：</view>
				<view>
					<view>15736884754</view>
					<view> 15736884754 </view>
					<view>15736884754</view>
				</view>
			</view>
			<view class="d-flex item-box justify-content-between align-items-center">
				<view class="text">与遗嘱人关系：</view>
				<picker @change="bindPickerChange" :value="index" :range="array">
					<view class="uni-input">{{array[index] || '请选择'}}</view>
				</picker>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				array: ['本人', '母子', '母女', '亲戚', '朋友'],
				index: ''
			};
		},
		methods: {
			bindPickerChange: function(e) {
				console.log('picker发送选择改变，携带值为', e.detail.value)
				this.index = e.detail.value
			},
		}
	}
</script>

<style lang="scss">
	.registrant-container {
		line-height: 1;
		overflow: hidden;

		.info-box {
			background-color: #fff;
			border-radius: 20px;
			padding: 0 30rpx;
			margin-top: 20rpx;
			overflow: hidden;

			.title {
				margin-top: 30rpx;
				font-size: 30rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #333333;
				border-bottom: 1rpx solid #F6F6F6;
				padding-bottom: 20rpx;
			}

			.item-box {
				height: 80rpx;

				>view:first-child,
					{
					font-size: 26rpx;
					font-weight: 500;
					color: #333333;
				}

				>view:last-child {
					font-size: 26rpx;
					font-weight: 500;
					color: #999999;
				}
			}

			.text {
				font-size: 26rpx;
				font-weight: 500;
				color: #333333;
				margin-bottom: 20rpx;
			}

			.id-card {
				margin-bottom: 20rpx;

				image {
					width: 298rpx;
					height: 191rpx;
				}
			}
		}

		.relation-box {
			background-color: #fff;
			border-radius: 20px;
			margin-top: 20rpx;

			.item-box {
				padding: 20rpx 30rpx;
			}

			.text {
				font-size: 26rpx;
				font-weight: 500;
				color: #333333;
			}
		}
	}
</style>
